
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="generator" content="RobotIDE" /> 
<style type="text/css">
html {
  font-family: Arial,Helvetica,sans-serif;
  background-color: white;
  color: black;
}
p {
  max-width: 60em;
}
table {
  border-collapse: collapse;
  empty-cells: show;
  margin: 1em 0em;
  border: 0.1em solid black;
}
th, td {
  border-style: solid;
  border-width: 0.05em 0.1em;
  border-color: black;
  padding: 0.1em 0.2em;
  height: 1.5em;
}
th {
  background-color: rgb(192, 192, 192);
  color: black;
  border-width: 0.1em;
  font-weight: bold;
  text-align: center;
  text-transform: capitalize;
  letter-spacing: 0.1em;
}
/* Widths of named columns */
col.name {
  width: 10em;
}
.action, .value, .arg {
  width: 15em;
}
/* Properties for the name column 
- td:first-child should work in CSS 2.1 avare browsers (tested in Firefox)
- col.name is against specs but works in IE
*/
td:first-child, col.name {
  background-color: rgb(240, 240, 240);
  text-transform: capitalize;
  letter-spacing: 0.1em;
}
/* required for IE */
th {
  font-style: normal;
}
</style>
<title>Verify Create File</title>
</head>
<body>
<h1>Verify Create File</h1>

<table border="1">
<colgroup span="99">
<col class="name">
<col class="value" span="4"></colgroup>
<tr>
<th>Setting</th>
<th>Value</th>
<th>Value</th>
<th>Value</th>
<th>Value</th>
</tr>
<tr>
<td>Documentation</td>
<td>This Test Suite contains a sample testcase using the OperatingSystem library. Execute it using:<br />
pybot verify_create_file.html</td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td>Library</td>
<td>OperatingSystem</td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
</table>

<table border="1">
<colgroup span="99">
<col class="name">
<col class="value" span="4"></colgroup>
<tr>
<th>Variable</th>
<th>Value</th>
<th>Value</th>
<th>Value</th>
<th>Value</th>
</tr>
<tr>
<td>${filename}</td>
<td>robotfile.txt</td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td>${content}</td>
<td>RobotFramework</td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
</table>

<table border="1">
<colgroup span="99">
<col class="name">
<col class="action">
<col class="arg" span="3"></colgroup>
<tr>
<th>Test Case</th>
<th>Action</th>
<th>Argument</th>
<th>Argument</th>
<th>Argument</th>
</tr>
<tr>
<td>Create New File with content should work</td>
<td>[Documentation]</td>
<td>This testcase verifies that it is possible to create a new file (ie. file does not exist in the beginning) with the provided content. Both filename and content are kept in the variables.<br />
To execute the testcase, run:\n<br />
pybot verify_create_file.html<br />
\n<br />
You can also change the desired filename and content directly from the command line, using:<br />
\n<br />
pybot -v filename:my_new_filename.txt -v content:my_new_content verify_create_file.html<br />
\n</td>
<td></td>
<td></td>
</tr>
<tr>
<td></td>
<td>File Should Not Exist</td>
<td>${filename}</td>
<td>File ${filename} should not exist, please remove it first</td>
<td></td>
</tr>
<tr>
<td></td>
<td>Create File</td>
<td>${filename}</td>
<td>${content}</td>
<td></td>
</tr>
<tr>
<td></td>
<td>File Should Exist</td>
<td>${filename}</td>
<td>File ${filename} not created, please check the permissions</td>
<td></td>
</tr>
<tr>
<td></td>
<td>Comment</td>
<td>We are using our own keyword here</td>
<td></td>
<td></td>
</tr>
<tr>
<td></td>
<td>File Should Contain</td>
<td>${filename}</td>
<td>${content}</td>
<td></td>
</tr>
<tr>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
</table>

<table border="1">
<colgroup span="99">
<col class="name">
<col class="action">
<col class="arg" span="3"></colgroup>
<tr>
<th>Keyword</th>
<th>Action</th>
<th>Argument</th>
<th>Argument</th>
<th>Argument</th>
</tr>
<tr>
<td>File Should Contain</td>
<td>[Arguments]</td>
<td>${filename}</td>
<td>${content}</td>
<td></td>
</tr>
<tr>
<td></td>
<td>${result}=</td>
<td>Grep File</td>
<td>${filename}</td>
<td>${content}</td>
</tr>
<tr>
<td></td>
<td>Should Not Be Empty</td>
<td>${result}</td>
<td>File \'${filename}\' does not contain \'${content}\'</td>
<td></td>
</tr>
<tr>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
</table>

</body>
</html>
